

// 去除a标签默认样式
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

// 图片默认样式
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

// 页面容器样式
.container {
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: auto; /* 使内容可滚动 */
  scrollbar-width: none; /* 针对Firefox */
  .container_page {
    width: calc(100% - 56px);
    // max-width: 518px;
  }
}

.container::-webkit-scrollbar {
  display: none; /* 针对Chrome, Safari和Opera */
}

// 居中
.flex_center {
  display: flex;
  align-items: center;
  justify-content: center;
}

// 按比例计算图片宽高
@function scaleImg($val) {
  @return $val * 100vw / 414px;
}

.van-dialog {
  width: calc(100% - 56px) !important;
  box-sizing: border-box;
  border-radius: 13px !important;

  .el-input {
    background-color: #f0f0f2;
    height: 52px !important;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    .el-input-group__append,
    .el-input-group__prepend {
      color: #39404d;
      font-weight: 600;
    }
  }
  .el-input__inner {
    border: none !important;
    height: 100%;
    background-color: transparent !important;
  }
  .el-input-group__prepend {
    background-color: transparent !important;
    border: none;
  }
  .title {
    text-align: center;
    font-weight: 600;
    color: #39404d;
    font-size: 15px;
    padding: 10px;
  }
  .brief {
    padding: 0 var(--gap);
    padding-bottom: var(--gap);
    color: #39404d;
    font-size: 14px;
    text-align: center;
  }
  .el-form-item {
    padding: 0 var(--gap);
    height: 52px;
  }
  .btns {
    height: 52px;
    display: flex;
    border-top: #eeeef5 1px solid;
    .btn {
      position: relative;
      flex: 1;
      color: var(--text-color);
      font-size: 17px;
      font-weight: 700;
      &:nth-child(1) {
        font-weight: 500;
      }
      &:nth-child(1)::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        width: 1px;
        height: 30px;

        background-color: #eeeef5;
        transform: translateY(-50%);
      }
    }
  }
}
